#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include "com.h"
#include "receivethread.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    int fd_com;
    char buff[BUFFER_SIZE];
    ReceiveThread* re;

private slots:

    void on_exitButton_clicked();

    void on_sendButton_clicked();

    void on_listenButton_clicked();

    void receiverbuff(QString );

    void on_encomButton_clicked();

    void on_relistenButton_clicked();

    void on_baudcomboBox_currentIndexChanged(QString );

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
